#
# Makefile
# Copyright 2011, Zane Sims
#
# This file is part of brick-breaker-game.
#
# brick-breaker-game is free software: you can redistribute it
# and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, either
# version 3 of the License, or (at your option) any later version.
#
# brick-breaker-game is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with brick-breaker-game.  If not, see <http://www.gnu.org/licenses/>.


CC=gcc

all: game editor

game: game.c common.o gui.o
	$(CC) game.c common.o gui.o -lallegro -lallegro_image -lallegro_primitives -lallegro_font -lallegro_ttf -lallegro_dialog -o game

editor: editor.c common.o gui.o
	$(CC) editor.c common.o gui.o -lallegro -lallegro_image -lallegro_primitives -lallegro_font -lallegro_ttf -lallegro_dialog -o editor

common.o: common.c common.h
	$(CC) -c common.c

gui.o: gui.c gui.h
	$(CC) -c gui.c

clean:
	rm *.o game editor
